<?php
	include("modules/tblfile/fileclass.php");
	$fileid = $_GET['fileid'];
	$file = new File();
	$file->loadByKey($fileid);
	$img = new HelperImage();
	
	$arr = array(
		'error' => 'none',
		'imageid' => $file->FileID,
		'imagename' => $file->FileName,
		'imagepath' => $file->FilePath,
		'imagethumbnail' => $img->resizePNG($file->FilePath,100,100)
	);
	
	echo json_encode(array('files' => $arr));
		
	
?>